package principle.facade;

/**
 * @author malguy-wang sir
 * @create ---
 */
public class popcorn {
    //单例模式-饿汉式
    private static popcorn instance = new popcorn();
    public static popcorn getInstance() { return instance; }
    public void play(){ System.out.println("popcorn play"); }
    public void on(){ System.out.println("popcorn on"); }
    public void off(){ System.out.println("popcorn off"); }
    public void pop(){ System.out.println("popcorn pop"); }
}
